package com.common.domain.dto;

import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;

/**
 * @author liuxuhuang
 * @date 2023年05月02日 23:01
 * @desc
 */
@Data
public class UserUpdateInfoDTO implements Serializable {
    @NotBlank(message = "昵称不能为空")
    private String nickName;
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式错误")
    private String phone;
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式错误")
    private String email;
    @NotBlank(message = "性别不能为空")
    private String sex;
}
